From 9c0bb511ef3e53db7f0769d9a606e14fd5b772b4 Mon Sep 17 00:00:00 2001 From: Bill Wohler Date: Fri, 16 Jun 2006 00:50:00 +0000 Subject: [PATCH] (mh-index-new-folder): Use -2 suffix instead of <2> suffix for folder names, as <> are illegal filename characters on Windows (closes SF #1507002). --- lisp/mh-e/ChangeLog | 6 ++++++ lisp/mh-e/mh-search.el | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index b9534ef9647..fb9f17f2d59 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog @@ -1,3 +1,9 @@ +2006-06-15 Bill Wohler + + * mh-search.el (mh-index-new-folder): Use -2 suffix instead of <2> + suffix for folder names, as <> are illegal filenakme characters on + Windows (closes SF #1507002). + 2006-06-05 Jacob Morzinski (tiny change) * mh-comp.el (mh-send-uses-spost): New variable. diff --git a/lisp/mh-e/mh-search.el b/lisp/mh-e/mh-search.el index b6f8dd71d9a..62c130bb90f 100644 --- a/lisp/mh-e/mh-search.el +++ b/lisp/mh-e/mh-search.el @@ -1537,7 +1537,7 @@ If folder NAME already exists and was generated for the same SEARCH-REGEXP then it is reused. Otherwise if the folder NAME was generated from a different -search then check if NAME<2> can be used. Otherwise try NAME<3>. +search then check if NAME-2 can be used. Otherwise try NAME-3. This is repeated till we find a new folder name. If the folder returned doesn't exist then it is created." @@ -1545,7 +1545,7 @@ If the folder returned doesn't exist then it is created." (error "The argument should be a valid MH folder name")) (let ((chosen-name (loop for i from 1 - for candidate = (if (equal i 1) name (format "%s<%s>" name i)) + for candidate = (if (equal i 1) name (format "%s-%s" name i)) when (or (not (mh-folder-exists-p candidate)) (equal (mh-index-folder-search-regexp candidate) search-regexp)) -- 2.30.2